import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		redirect: '/home',
	},
	{
		path: '/home',
		name: 'home',
		component: () => import('@/views/home'),
	},
	{
		path: '/earth',
		name: 'earth',
		component: () => import('@/views/earth'),
	},
]
const router = new VueRouter({
	mode: 'hash', // 路由模式
	routes,
})

export default router
